package com.ecloud.common.tag;

/**
 * 标签
 *
 * @author Squbi
 * @date 2021/6/28 9:54
 */
public enum TagConstant {
    //
    C5A101AF(TagPrevConstant.C03P15, "500000A0010001", TagTypeConstant.ACCUMULATE_FLUX);

    private final TagPrevConstant prev;
    private final String position;
    private final TagTypeConstant type;

    TagConstant(TagPrevConstant prev, String position, TagTypeConstant type) {
        this.prev = prev;
        this.position = position;
        this.type = type;
    }

    public String getTag() {
        return prev.getPosition() + "." + position + "." + type.getName();
    }
}
